< previous page page_641 next page >

Page 641
(table continued from previous page)
Event NameDescription
GetDayBoldThis event is fired whenever the user moves to a new range of dates. This event passes in the starting date displayed, a count of how many days are displayed, and a Boolean array of False values that you can set to True if you want a date to be made bold on the calendar. You might use this to give the user an at-a-glance view of which days have employee interviews scheduled.
SelChangeThis event occurs whenever the user selects a new date or a new range of dates. You might use this to update the caption of the form on which this control resides with the date(s) selected.

The Progress Bar Control
A progress bar control is used as a feedback mechanism to inform a user that a process is taking place. Although its not the most accurate control, it does provide a good visual clue that something is happening in your application. Figure 31.3 shows examples of two different progress bars. The top bar has the typical box look, whereas the bottom progress bar uses the new smooth scrolling effect. You would use a progress bar whenever theres a lot of data to go through and the operation the user is performing will take awhile.
Examples Filename: Progress.frm
8160-0641a.gif
Figure 31.3
A progress bar example.
The progress bar control determines how many blocks to put up, depending on the height and the width of the control. All you have to do is to fill in the Min, Max, and Value properties, and the control calculates the amount of blocks to display. In general, its best if the width of the control is at least twelve times the height of the control.

 
< previous page page_641 next page >

If you like this book, buy it!